#ifndef NAVIGATORELEMENT_H
#define NAVIGATORELEMENT_H

#include <QWidget>

class QLabel;
class QHBoxLayout;
class QToolButton;

class NavigatorBarElement : public QWidget
{
    Q_OBJECT
public:
    explicit NavigatorBarElement (const QString& buttonText, const QString& labelText, int orderNumber, QWidget* parent = 0);

    int orderNumber() { return m_orderNumber; }

public slots:
    void setAsCurrent (bool current);

signals:
    void activated (int orderNumber);

private slots:
    void buttonClicked();

private:
    QToolButton* m_button;
    QLabel* m_label;
    QHBoxLayout* m_layout;
    int m_orderNumber;
};

#endif // NAVIGATORELEMENT_H
